package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TExpenditureUpMapper;
import com.ruoyi.system.domain.TExpenditureUp;
import com.ruoyi.system.service.ITExpenditureUpService;

/**
 * 纵向、横向到校科研经费数_上Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-07
 */
@Service
public class TExpenditureUpServiceImpl implements ITExpenditureUpService 
{
    @Autowired
    private TExpenditureUpMapper tExpenditureUpMapper;

    /**
     * 查询纵向、横向到校科研经费数_上
     * 
     * @param id 纵向、横向到校科研经费数_上主键
     * @return 纵向、横向到校科研经费数_上
     */
    @Override
    public TExpenditureUp selectTExpenditureUpById(Long id)
    {
        return tExpenditureUpMapper.selectTExpenditureUpById(id);
    }

    /**
     * 查询纵向、横向到校科研经费数_上列表
     * 
     * @param tExpenditureUp 纵向、横向到校科研经费数_上
     * @return 纵向、横向到校科研经费数_上
     */
    @Override
    public List<TExpenditureUp> selectTExpenditureUpList(TExpenditureUp tExpenditureUp)
    {
        return tExpenditureUpMapper.selectTExpenditureUpList(tExpenditureUp);
    }

    /**
     * 新增纵向、横向到校科研经费数_上
     * 
     * @param tExpenditureUp 纵向、横向到校科研经费数_上
     * @return 结果
     */
    @Override
    public int insertTExpenditureUp(TExpenditureUp tExpenditureUp)
    {
        return tExpenditureUpMapper.insertTExpenditureUp(tExpenditureUp);
    }

    /**
     * 修改纵向、横向到校科研经费数_上
     * 
     * @param tExpenditureUp 纵向、横向到校科研经费数_上
     * @return 结果
     */
    @Override
    public int updateTExpenditureUp(TExpenditureUp tExpenditureUp)
    {
        return tExpenditureUpMapper.updateTExpenditureUp(tExpenditureUp);
    }

    /**
     * 批量删除纵向、横向到校科研经费数_上
     * 
     * @param ids 需要删除的纵向、横向到校科研经费数_上主键
     * @return 结果
     */
    @Override
    public int deleteTExpenditureUpByIds(Long[] ids)
    {
        return tExpenditureUpMapper.deleteTExpenditureUpByIds(ids);
    }

    /**
     * 删除纵向、横向到校科研经费数_上信息
     * 
     * @param id 纵向、横向到校科研经费数_上主键
     * @return 结果
     */
    @Override
    public int deleteTExpenditureUpById(Long id)
    {
        return tExpenditureUpMapper.deleteTExpenditureUpById(id);
    }
}
